package com.tmt.datatable.editor;

import com.tmt.datatable.model.UploadedFile;
import org.springframework.context.MessageSource;

/**
 * Created by ThreeManTeam on 2017/6/3.
 */
public interface IUploadActionHandler {

    void setMessageSource(MessageSource messageSource);

    /**
     * 保存文件数据。
     * @param clazz
     * @param propName
     * @param holder
     * @param <T>
     * @return
     */
    <T> UploadedFile saveFile(Class<T> clazz, String propName, IFileDataHolder holder) throws Exception;
}
